package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户和角色关联 sys_user_role
 * 
 * @author ruoyi
 */
public class SysUserRole
{
    /** 用户ID */
    private Long userId;
    
    /** 角色ID */
    private Long roleId;

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getRoleId()
    {
        return roleId;
    }

    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("roleId", getRoleId())
            .toString();
    }

    /**
     * 设备39日数据对象 device_day_info_39
     *
     * @author ruoyi
     * @date 2024-08-19
     */
    public static class DeviceDayInfo39 extends BaseEntity
    {
        private static final long serialVersionUID = 1L;

        /** 记录ID */
        private Long id;

        /** 充电电量 kWh */
        @Excel(name = "充电电量 kWh")
        private Long chargeCap;

        /** 放电电量 kWh */
        @Excel(name = "放电电量 kWh")
        private Long dischargeCap;

        /** 充电时长 h */
        @Excel(name = "充电时长 h")
        private Long chargeTime;

        /** 放电时长 h */
        @Excel(name = "放电时长 h")
        private Long dischargeTime;

        public void setId(Long id)
        {
            this.id = id;
        }

        public Long getId()
        {
            return id;
        }
        public void setChargeCap(Long chargeCap)
        {
            this.chargeCap = chargeCap;
        }

        public Long getChargeCap()
        {
            return chargeCap;
        }
        public void setDischargeCap(Long dischargeCap)
        {
            this.dischargeCap = dischargeCap;
        }

        public Long getDischargeCap()
        {
            return dischargeCap;
        }
        public void setChargeTime(Long chargeTime)
        {
            this.chargeTime = chargeTime;
        }

        public Long getChargeTime()
        {
            return chargeTime;
        }
        public void setDischargeTime(Long dischargeTime)
        {
            this.dischargeTime = dischargeTime;
        }

        public Long getDischargeTime()
        {
            return dischargeTime;
        }

        @Override
        public String toString() {
            return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("chargeCap", getChargeCap())
                .append("dischargeCap", getDischargeCap())
                .append("chargeTime", getChargeTime())
                .append("dischargeTime", getDischargeTime())
                .toString();
        }
    }
}
